<table cellpadding="2" cellspacing="1" width="98%">
	<input type="hidden" name="setting[type]" value="int">
    <tr> 
        <td width="100">选项列表</td>
        <td><textarea name="setting[options]" rows="2" cols="20" id="options" style="height:100px;width:400px;"><?php echo isset($setting['options']) ? $setting['options'] : '选项名称1|选项值1'; ?></textarea>多个选项用英文,隔开。例如：选项名称1|选项值1,选项名称2|选项值2</td>
    </tr>
    <tr> 
        <td>选项类型</td>
        <td>
            <input type="radio" lay-filter="colshow" name="setting[boxtype]" value="radio" title=" 单选按钮" <?php if ($setting['boxtype'] == 'radio') echo 'checked'; ?>/>
            <input type="radio" lay-filter="colshow" name="setting[boxtype]" value="checkbox" title=" 复选框" <?php if ($setting['boxtype'] == 'checkbox') echo 'checked'; ?>/>
            <input type="radio" lay-filter="sizeshow" name="setting[boxtype]" value="select" title=" 下拉框" <?php if ($setting['boxtype'] == 'select') echo 'checked'; ?>/>
        </td>
    </tr>
    <tr> 
        <td>字段类型</td>
        <td>
            <div class="layui-input-inline" style="width: 200px;">
            <select name="setting[fieldtype]" lay-filter="minnumshow">
                <option value="varchar" <?php if ($setting['fieldtype'] == 'varchar') echo 'selected'; ?>>字符 VARCHAR</option>
                <option value="tinyint" <?php if ($setting['fieldtype'] == 'tinyint') echo 'selected'; ?>>整数 TINYINT(3)</option>
                <option value="smallint" <?php if ($setting['fieldtype'] == 'smallint') echo 'selected'; ?>>整数 SMALLINT(5)</option>
                <option value="mediumint" <?php if ($setting['fieldtype'] == 'mediumint') echo 'selected'; ?>>整数 MEDIUMINT(8)</option>
                <option value="int" <?php if ($setting['fieldtype'] == 'int') echo 'selected'; ?>>整数 INT(10)</option>
            </select>
            </div>
            <div class="layui-input-inline">
                <span id="minnumber" style="display:none">
                    <font color='red'>
                        <input type="radio" name="setting[minnumber]" value="1" title="正整数" <?php if ($setting['minnumber'] == 1) echo 'checked'; ?>/>
                    </font>
                    <input type="radio" title=" 整数" name="setting[minnumber]" value="-1" <?php if ($setting['minnumber'] == -1) echo 'checked'; ?>/>
                </span>
             </div>
        </td>
    </tr>
    <tbody id="setcols" style="display:">
        <tr> 
            <td>每列宽度</td>
            <td>
                <div class="layui-input-inline" style="width: 80px;">
                    <input type="text" name="setting[width]" value="<?php echo isset($setting['width']) ? $setting['width'] : '80'; ?>" size="5" class="layui-input">
                </div>
                <div class="layui-input-inline">
                    px
                </div>
            </td>
        </tr>
    </tbody>
    <tbody id="setsize" style="display:none">
        <tr> 
            <td>高度</td>
            <td>
                <div class="layui-input-inline" style="width: 80px;">
                    <input type="text" name="setting[size]" value="<?php echo isset($setting['size']) ? $setting['size'] : '1'; ?>" size="5" class="layui-input">
                </div>
                <div class="layui-input-inline">
                    行
                </div>
            </td>
        </tr>
    </tbody>
    <tr> 
        <td>默认值</td>
        <td>
            <div class="layui-input-inline" style="width: 200px;">
                <input type="text" name="setting[defaultvalue]" value="<?php echo $setting['defaultvalue']; ?>" size="40" class="layui-input">
            </div>
        </td>
    </tr>
    <tr> 
        <td>输出格式</td>
        <td>
            <input type="radio" name="setting[outputtype]" value="1" title=" 输出选项值" <?php if ($setting['outputtype']) echo 'checked'; ?> />
            <input type="radio" name="setting[outputtype]" value="0" title=" 输出选项名称" <?php if (!$setting['outputtype']) echo 'checked'; ?>/>
        </td>
    </tr>
</table>